package com.houweishi.module.receipt.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.houweishi.common.annotation.Excel;
import com.houweishi.common.core.domain.BaseEntity;

/**
 * 入库记录对象 biz_receipt
 * 
 * @author houweishi
 * @date 2023-02-25
 */

@Data
public class BizReceipt extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 入库人id */
//    @Excel(name = "入库人id")
    private Long returnerId;

    /** 入库人姓名 */
    @Excel(name = "入库人姓名")
    private String returnerName;

    /** 负责人id */
//    @Excel(name = "负责人id")
    private String responsibleUser;

    /** 负责人姓名 */
    @Excel(name = "负责人姓名")
    private String responsibleUserName;

    /** 仓库id */
//    @Excel(name = "仓库id")
    private Long warehouseId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 入库类型（1归还 2采购） */
    @Excel(name = "入库类型", readConverterExp = "1=归还,2=采购")
    private String returnType;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 入库申请状态（1申请中， 2已同意） */
    private String status;

    /** 入库产品列表 */
    private List<BizReceiptProduct> bizReceiptProductList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setReturnerId(Long returnerId) 
    {
        this.returnerId = returnerId;
    }

    public Long getReturnerId() 
    {
        return returnerId;
    }
    public void setReturnerName(String returnerName) 
    {
        this.returnerName = returnerName;
    }

    public String getReturnerName() 
    {
        return returnerName;
    }
    public void setResponsibleUser(String responsibleUser) 
    {
        this.responsibleUser = responsibleUser;
    }

    public String getResponsibleUser() 
    {
        return responsibleUser;
    }
    public void setResponsibleUserName(String responsibleUserName) 
    {
        this.responsibleUserName = responsibleUserName;
    }

    public String getResponsibleUserName() 
    {
        return responsibleUserName;
    }
    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }
    public void setWarehouseName(String warehouseName) 
    {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName() 
    {
        return warehouseName;
    }
    public void setReturnType(String returnType) 
    {
        this.returnType = returnType;
    }

    public String getReturnType() 
    {
        return returnType;
    }
    public void setReturnTime(Date returnTime) 
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime() 
    {
        return returnTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("returnerId", getReturnerId())
            .append("returnerName", getReturnerName())
            .append("responsibleUser", getResponsibleUser())
            .append("responsibleUserName", getResponsibleUserName())
            .append("warehouseId", getWarehouseId())
            .append("warehouseName", getWarehouseName())
            .append("returnType", getReturnType())
            .append("returnTime", getReturnTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("remark", getRemark())
            .toString();
    }
}
